const {Schema,model} = require('mongoose');

// 表头
const typeHead = new Schema({
    id:{
        type:String,
        unique:true,
        required:true
    },
    name:String
},{
    autoIndexId:false,
    versionKey:false   // 去掉默认的_v字段
})

// 模型
const typeModel = model('typeModel_DB',typeHead,'types')

module.exports = typeModel;